(Fformat): Fix calculation of text property positions
authorKenichi Handa <handa@m17n.org>
Thu, 13 Jul 2006 06:03:33 +0000 (06:03 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 13 Jul 2006 06:03:33 +0000 (06:03 +0000)
of format string.

src/editfns.c

index 98a42855ba57f5f618a26051e664f3422dcf17c7..cf37c10a9d5a00b5c1f83315696fdb0d1231c87f 100644 (file)
@@ -3886,7 +3886,7 @@ usage: (format STRING &rest OBJECTS)  */)
              /* Likewise adjust the property end position.  */
              pos = XINT (XCAR (XCDR (item)));
 
-             for (; bytepos < pos; bytepos++)
+             for (; position < pos; bytepos++)
                {
                  if (! discarded[bytepos])
                    position++, translated++;